package com.thinkingstar.iads.projectcenter.entity;

import java.io.Serializable;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import com.thinkingstar.iads.common.entity.AbstractEntites;
import com.thinkingstar.iads.datacenter.entity.DcEquipmentEquipInfo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 * @ClassName: pc_equipment_equip_info
 * @Description: 项目中心_ 设备_设备配备子表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Comment("项目中心_设备_设备配备子表")
@Table("pc_equipment_equip_info")
public class PcProjectEquipmentEquipInfo extends AbstractEntites implements Serializable{
	
	@Comment("设备配备id")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	private String equipment_equip_id;
	
	@Comment("设备id")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	private String equipment_id;
	
	@Comment("设备名称")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 50)
	private String equipment_name;
	
	@Comment("设备数量")
	@Column
	@ColDefine(type = ColType.INT, width = 10)
	private String equipment_num;
	
	@Comment("设备厂商id")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	private String equipment_manufacturer_id;
	
	@Comment("设备单价")
	@Column
	@ColDefine(type = ColType.FLOAT, width = 32)
	private String equipment_price;
	
	@Comment("备注(与185号文件要求不一致原因)")
	@Column
	@ColDefine(type = ColType.VARCHAR,width=255)
	private String comment;
	
	public PcProjectEquipmentEquipInfo(DcEquipmentEquipInfo dcEquipmentEquipInfo , String equipment_equip_id){
		this.equipment_id = dcEquipmentEquipInfo.getEquipment_id();
		this.equipment_name = dcEquipmentEquipInfo.getEquipment_name();
		this.equipment_num = dcEquipmentEquipInfo.getEquipment_num();
		this.equipment_equip_id = equipment_equip_id;
	}

}
